<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}

    <div class="form-group">
        <label for="title" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="title" name="row[nickname]" value="{$row.nickname}"
                data-rule="required;title" />
        </div>
    </div>
    <div class="form-group">
        <label for="price" class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" name="row[email]" value="{$row.email}" data-rule="email" />
        </div>
    </div>
    <div class="form-group">
        <label for="price" class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" name="row[money]" value="{$row.money}"  data-rule="required;" />
        </div>
    </div>
    <div class="form-group">
        <label for="price" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="price" name="row[mobile]" value="{$row.mobile}"
                data-rule="required;mobile" />
        </div>
    </div>
    <!-- 性别 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[gender]', $genders, $row.gender, ['class'=>'form-control selectpicker',
            'data-rule'=>'required'])}
        </div>
    </div>
    <!-- 认证状态 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Auth')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[auth]', $auths, $row.auth, ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
        </div>
    </div>
    <!-- 成交状态 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Deal')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[deal]', $deals, $row.deal, ['class'=>'form-control selectpicker',
            'data-rule'=>'required'])}
        </div>
    </div>
    <!-- 来源 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('SourceName')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[sourceid]', $sources, $row.sourceid, ['class'=>'form-control selectpicker',
            'data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8 control-relative">
            <input id="c-city" class="form-control" data-toggle="city-picker" name="row[city]" type="text" value="{$row.regionCode}" />
            <input type="hidden" name="row[code]" id="code" value="{$row.regionCode}">
        </div>
    </div>

    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>